﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;
namespace LogSystem
{
    public class LogBll
    {
        private static readonly ILog log2 = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        private static readonly ILog logApp = LogManager.GetLogger("LogWebApp");
        private static readonly ILog logWF = LogManager.GetLogger("LogWorkFlow");
        
        public static void LogWebAppDebug(string message, Exception e)
        {
            logApp.Debug(message, e);
        }
        public static void LogWebAppDebug(string message)
        {
            logApp.Debug(message);
        }
        public static void LogWebAppInfo(string message, Exception e)
        {
            logApp.Info(message, e);
        }
        public static void LogWebAppInfo(string message)
        {
            logApp.Info(message);
        }
        public static void LogWebAppError(string message, Exception e)
        {
            logApp.Error(message, e);
        }
        public static void LogWebAppError(string message)
        {
            logApp.Error(message);
        }
        public static void LogWebAppFatal(string message, Exception e)
        {
            logApp.Fatal(message, e);
        }
        public static void LogWebAppFatal(string message)
        {
            logApp.Fatal(message);
        }
    }
}
